package design.simdi.code.final_paper.core.daos;

import it.openutils.dao.hibernate.HibernateDAO;
import it.openutils.dao.hibernate.HibernateDAOImpl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import design.simdi.code.final_paper.core.entities.Role;

public interface RoleDao extends HibernateDAO<Role, Long> {
	@Repository(value = "roleDao")
	public static class GroupDaoImpl extends HibernateDAOImpl<Role, Long> implements RoleDao {

		@Autowired
		public GroupDaoImpl(SessionFactory factory) {
			setSessionFactory(factory);
			setReferenceClass(Role.class);
		}

	}
}